package com.itheima.reggie.common;


public class BaseContext {
    private BaseContext() {

    }
    private static final ThreadLocal<Long> THREAD_LOCAL =new ThreadLocal<>();

    public static void setContextId(Long id){
        THREAD_LOCAL.set(id);
    }

    public static Long getContextId(){
        return THREAD_LOCAL.get();
    }
}
